package com.fdd.op.sdk.internal.util;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 符合Fdd习惯的纯字符串字典结构。
 *
 * @author zhouj1
 */
public class FddHashMap extends HashMap<String, Object> {

    private static final long serialVersionUID = 1L;

    public FddHashMap() {
        super();
    }

    public FddHashMap(Map<? extends String, ? extends Object> m) {
        super(m);
    }

    @Override
    public Object put(String key, Object value) {
        if (value == null) {
            return null;
		}
        if (StringUtils.areNotEmpty(key, value)) {
            return super.put(key, value);
        } else {
            return null;
        }
    }

}
